<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html >
<head>
	<meta charset="utf-8">
	<meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <link rel="stylesheet" href="Public/css/api.css" />
	<title>夺宝详情</title>
	<style type="text/css">
		*{margin:0;padding:0;}
		
		.prize_intro{padding: 10px;}
		.prize_intro .prize{ font-size: 16px;font-weight: bold; color:#333;}
		.prize_intro .times,.prize_intro .publish,.prize_intro .lucky{line-height: 26px;font-size: 14px;color: #666;}
		.prize_intro .lucky .num{color: red;}

		/*隐藏揭晓时间和本期幸运号码*/
		/*.prize_intro .publish,.prize_intro .lucky{display: none;}*/

		.join{line-height: 36px;font-size: 14px;text-align: center;}
		.join .num{color: red;}

		table{width: 100%;border-collapse: collapse;text-align: center;font-size:14px;}
		table tr{line-height: 20px}
		table td{width:30%;border: 1px solid #ddd;}
		table .num{color: red;}
		table .operate{ color: red }
	</style>
</head>
<body>
	<div id="container">
		<div class="prize_intro" style="color:<?php echo ($part["color"]); ?>">
			<p class="prize" ><?php echo ($part["name"]); ?></p>
			<p class="times">期号：<span ><?php echo ($part["fk_number"]); ?></span></p>
			<?php if($part["state"] == 2): ?><p class="publish">揭晓时间：<span ><?php echo ($part["publictime"]); ?></span></p>
				<p class="lucky">本期幸运号码：<span ><?php echo ($part["luck_number"]); ?></span></p><?php endif; ?>
			<?php if($part["isluck"] == 1): ?><img src="Public/img/zhongjiang.png" id="zhongimg" style="width:50px;height:50px;top:10px;right:10px;position:absolute;"/><?php endif; ?>
		</div>
		<p class="join">我已参与了<span class="num" ><?php echo ($part["quantity"]); ?></span>人次，以下是所有夺宝记录</p>
		<table>
			<thead>
				<tr><td>夺宝时间</td><td>参与人次</td><td>操作</td></tr>
			</thead>
			<tbody>
				<tr><td><?php echo ($part["addtime"]); ?></td><td><span class="num"><?php echo ($part["quantity"]); ?></span>人次</td><td><span class="operate" onclick="openC(<?php echo ($part["myid"]); ?>)">查看号码</span></td></tr>
			</tbody>
		</table>
	</div>
	
	<script>
		
		function openC(id){
			window.location.href="index.php?c=periods&a=lucknumDetail&goodorderid="+id;
		}
	</script>
</body>
</html>